package com.lichuang.fruitvarietysm.goods.controller;


import com.lichuang.fruitvarietysm.goods.entity.CategoryAttributeDTE;
import com.lichuang.fruitvarietysm.goods.service.impl.AttributeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author shuaihang
 * @since 2019-05-25
 */
@RestController
@RequestMapping("//attribute")
public class AttributeController {
    @Autowired
    private AttributeServiceImpl attributeService;

    @RequestMapping("/sCategoryAttributeDTES")
    public List<CategoryAttributeDTE> sCategoryAttributeDTES(@RequestParam(value = "category_id")Integer category_id,@RequestParam("pid")Integer pid){
        List<CategoryAttributeDTE> list= attributeService.sCategoryAttributeDTES(category_id,pid);
        return list;
    }

}
